﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace WebSE
{
    public class ActPage
    {
        private string picURL;          //图片URL
        private string chatContent;     //对话内容
        private bool isChatPage;        //是否对话页面
        
        private int proID;              //题目id
        private int problemType;        //题目类型，1为单选题，2为多选题，3为填空题
        private string problem;         //题目
        
        private string[] choices;       //选择题选项，固定4个
        private int countChsAns;        //选择题答案个数
        private int[] chsAns;           //选择题答案，0、1、2和3表示选A、B、C和D
        private string[] explainChs;    //选择题答案解释

        private int countFillAns;       //填空题答案个数
        private int[] countSimilar;     //每个空的答案数
        private string[][] fillAns;     //填空题答案，每个空可能多个类似的答案
        private string[] explainFill; //填空题答案解释

        //构造函数
        ActPage()
        {
            choices = new string[4];
        }

        //设置页面对象的各个属性
        public bool setPage()
        {
            return isChatPage;
        }

        public string getPicURL()
        {
            return picURL;
        }

        public string getChatContent()
        {
            return chatContent;
        }

        public bool getPageType()
        {
            return isChatPage;
        }
    }
}
